-include_lib("kernel/include/inet.hrl").

-record(ring_node, {
    id          :: non_neg_integer(),
    name        :: node(),
    ip          :: ip_address(),
    access_port :: integer()
}).

-type ring_node() :: #ring_node{}.

-record(ring_accessor, {
    id      :: non_neg_integer(),   % id = md5(atom_to_list(node_name) ++ atom_to_list(accessor_name))
    node    :: node(),
    name    :: atom()
}).

-type ring_accessor() :: #ring_accessor{}.